<?php 
      session_start();
    
      ?>
     <?php
      if( $_SESSION['log']=true){session_destroy();
      }
           ?>
    <!DOCTYPE HTML SYSTEM>
<html>
<head>
<title>Login</title>
</head>
<body>
<a href="index.php">Login</a>
<a href="form.php">Register</a>

    <form action="login.php" method="post">


	<br/><br/>

	<label for="name"> Jmeno </label>
	<input type="text" id="name" name="name" value="<?php echo $_POST['name'];?>">
		
	<br/><br/>
	<label for="password"> Heslo </label>
	<input type="text" id="password" name="password" value="<?php echo $_POST['password'];?>">


	<input type="submit" value="Login">
</form>
 </body>
</html> 